<!DOCTYPE html>
<html lang="zh_cn">
<head>
        <title>来玩魔王的咚</title>
        <meta name="viewport" content="width=device-width, initial-scale=1" />
        <meta charset="utf-8" />
        <!-- twitter card metadata -->
        <!-- OG Tags -->
<meta property="og:url" content="/category/Linux"/>
<meta property="og:title" content="来玩魔王的咚 | Linux" />
        <!-- favicon -->
        <link rel="icon" type="image/png" href="/images/mowang.png">
        <!-- moment.js for date formatting -->
        <script src="/theme/js/moment.js"></script>
        <!-- css -->
        <link rel="stylesheet" type="text/css" href="/theme/css/main.css" />
        <!-- 左边的menu，如果页面高度不够，就跟着滚动，否则文章分类显示不全 -->
        <link rel="stylesheet" type="text/css" href="/theme/css/mycss/menu.css" />
		<script>
			
                /*! grunt-grunticon Stylesheet Loader - v2.1.2 | https://github.com/filamentgroup/grunticon | (c) 2015 Scott Jehl, Filament Group, Inc. | MIT license. */
    
    (function(e){function t(t,n,r,o){"use strict";function a(){for(var e,n=0;u.length>n;n++)u[n].href&&u[n].href.indexOf(t)>-1&&(e=!0);e?i.media=r||"all":setTimeout(a)}var i=e.document.createElement("link"),l=n||e.document.getElementsByTagName("script")[0],u=e.document.styleSheets;return i.rel="stylesheet",i.href=t,i.media="only x",i.onload=o||null,l.parentNode.insertBefore(i,l),a(),i}var n=function(r,o){"use strict";if(r&&3===r.length){var a=e.navigator,i=e.Image,l=!(!document.createElementNS||!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect||!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")||e.opera&&-1===a.userAgent.indexOf("Chrome")||-1!==a.userAgent.indexOf("Series40")),u=new i;u.onerror=function(){n.method="png",n.href=r[2],t(r[2])},u.onload=function(){var e=1===u.width&&1===u.height,a=r[e&&l?0:e?1:2];n.method=e&&l?"svg":e?"datapng":"png",n.href=a,t(a,null,null,o)},u.src="",document.documentElement.className+=" grunticon"}};n.loadCSS=t,e.grunticon=n})(this);(function(e,t){"use strict";var n=t.document,r="grunticon:",o=function(e){if(n.attachEvent?"complete"===n.readyState:"loading"!==n.readyState)e();else{var t=!1;n.addEventListener("readystatechange",function(){t||(t=!0,e())},!1)}},a=function(e){return t.document.querySelector('link[href$="'+e+'"]')},c=function(e){var t,n,o,a,c,i,u={};if(t=e.sheet,!t)return u;n=t.cssRules?t.cssRules:t.rules;for(var l=0;n.length>l;l++)o=n[l].cssText,a=r+n[l].selectorText,c=o.split(");")[0].match(/US\-ASCII\,([^"']+)/),c&&c[1]&&(i=decodeURIComponent(c[1]),u[a]=i);return u},i=function(e){var t,o,a;o="data-grunticon-embed";for(var c in e)if(a=c.slice(r.length),t=n.querySelectorAll(a+"["+o+"]"),t.length)for(var i=0;t.length>i;i++)t[i].innerHTML=e[c],t[i].style.backgroundImage="none",t[i].removeAttribute(o);return t},u=function(t){"svg"===e.method&&o(function(){i(c(a(e.href))),"function"==typeof t&&t()})};e.embedIcons=i,e.getCSS=a,e.getIcons=c,e.ready=o,e.svgLoadedCallback=u,e.embedSVG=u})(grunticon,this);
                
                grunticon(["/theme/css/icons.data.svg.css", "/theme/css/icons.data.png.css", "/theme/css/icons.fallback.css"]);
            </script>
        <noscript><link href="/theme/css/icons.fallback.css" rel="stylesheet"></noscript>
        <!-- menu toggle javascript -->
        <script type="text/javascript">
            document.addEventListener("DOMContentLoaded", initMenu);
            
            function initMenu(){
                var menu = document.getElementById("menu");
                var menulink = document.getElementById("menu-link");
                menulink.addEventListener("click", function toggleMenu(){
                        window.event.preventDefault();
                        menulink.classList.toggle('active');
                        menu.classList.toggle('active');              
                    });
            };
        </script>
        <!-- 不蒜子 -->
        <script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
</head>
<body>
    <div role="banner" id="masthead">
        <header>
            <a href="/"><img src="/images/mowang.png" alt="McManus Logo"></a>
                <h1>来玩魔王的咚@骑士救兵</h1>
            <a href="#menu" id="menu-link">more stuff</a>
            <nav id="menu">
                <ul>
                        <li><a href="/tags">tags</a></li>
                            <li><a href="/category/cloud.html">Cloud</a></li>
                            <li><a href="/category/docker.html">Docker</a></li>
                            <li><a href="/category/go.html">Go</a></li>
                            <li class="active"><a href="/category/linux.html">Linux</a></li>
                            <li><a href="/category/python.html">Python</a></li>
                            <li><a href="/category/xue-xi-bi-ji.html">学习笔记</a></li>
                            <li><a href="/category/yun-wei-zi-dong-hua.html">运维自动化</a></li>
                </ul>
            </nav>
        </header>
    </div>
        <div class="page" role="main">
<div class="page-title">
    <h1>Linux</h1>
</div>
<div class="articles">
<p class="paginator">
        <a href="/category/linux.html" class="previous">&laquo;</a>
    <span>
        <a href="/category/linux.html">首页</a>
        &nbsp;2 / 2&nbsp;
        <a href="/category/linux2.html">尾页</a>
    </span>
</p>
    <ol>
        <li>
            <article>
                <footer>
                        <p>
                        <time datetime="2020-08-16 15:10:00+08:00">
                            <script>document.write(moment('2020-08-16 15:10:00+08:00').format('YYYY-MM-DD'));</script>
                        </time>
                        ~
                        <time datetime="2020-08-16 15:10:00+08:00">
                            <script>document.write(moment('2020-08-17 11:30:00+08:00').format('YYYY-MM-DD'));</script>
                        </time>
                                in <a href="/category/linux.html"><span class="category-tag">Linux</span></a>
                    </p>
                </footer>
                <header>
                    <a href="/shell-script-advanced.html">
                        <h2>shell脚本编写技巧</h2>
                    </a>
                </header>
                <div class="summary"><p>set设置：编写可靠的脚本；readonly：限制变量只读；flock：限制脚本单例执行；意外退出时kill所有子进程；timeout：限制运行时间；exit：退出状态码；IFS变量：字段分隔符；tee：同时打印并记录到文件；cat：脚本中创建文件；永久重定向;mktemp：创建本地临时文件</p> </div>
                <div class="tags">
                    <ul class="tags">
                        <li><a href="/tag/shell.html" class="tag">shell</a></li>
                        <li><a href="/tag/jin-cheng-suo.html" class="tag">进程锁</a></li>
                    </ul>
                </div>
                <a href="/shell-script-advanced.html">
                    <p class="readmore">Read more...</p>
                </a>
            </article>
        </li>
        <li>
            <article>
                <footer>
                        <p>
                        <time datetime="2020-08-15 13:00:00+08:00">
                            <script>document.write(moment('2020-08-15 13:00:00+08:00').format('YYYY-MM-DD'));</script>
                        </time>
                        ~
                        <time datetime="2020-08-15 13:00:00+08:00">
                            <script>document.write(moment('2020-11-06 14:00:00+08:00').format('YYYY-MM-DD'));</script>
                        </time>
                                in <a href="/category/linux.html"><span class="category-tag">Linux</span></a>
                    </p>
                </footer>
                <header>
                    <a href="/linux-basic-knowledge-points.html">
                        <h2>Linux 初级知识点</h2>
                    </a>
                </header>
                <div class="summary"><p>Linux文件系统(FHS)；结束进程(kill)；vi编辑器操作；shell输出带颜色的字体：修改命令提示符颜色</p> </div>
                <div class="tags">
                    <ul class="tags">
                        <li><a href="/tag/kill.html" class="tag">kill</a></li>
                        <li><a href="/tag/securecrt.html" class="tag">SecureCRT</a></li>
                        <li><a href="/tag/vi.html" class="tag">vi</a></li>
                    </ul>
                </div>
                <a href="/linux-basic-knowledge-points.html">
                    <p class="readmore">Read more...</p>
                </a>
            </article>
        </li>
    </ol>
<p class="paginator">
        <a href="/category/linux.html" class="previous">&laquo;</a>
    <span>
        <a href="/category/linux.html">首页</a>
        &nbsp;2 / 2&nbsp;
        <a href="/category/linux2.html">尾页</a>
    </span>
</p>
</div>                <footer>
                    <div class="icons">
                    </div>
                    <span id="busuanzi_container_page_pv" style="padding: 10px">本文阅读量<span id="busuanzi_value_page_pv"></span>次</span>
                    <span id="busuanzi_container_site_pv" style="padding: 10px">本站总访问量<span id="busuanzi_value_site_pv"></span>次</span>
                    <span id="busuanzi_container_site_uv" style="padding: 10px">本站总访客数<span id="busuanzi_value_site_uv"></span>人</span>
                    <p>© <script>document.write(moment().format('YYYY'));</script> 749B</p>
                </footer>
        </div>
</body>
</html>